<%@ Page Language="vb" AutoEventWireup="false" Codebehind="ViewElectedExecutive.aspx.vb" Inherits="Secure.ElectedExecutive"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
	<head>
		<title>Viewing Elected Executive</title>
		<meta name="vs_defaultClientScript" content="JavaScript" />
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
		<link href="Styles.css" type="text/css" rel="stylesheet" />
	</head>
	<body>
		<form id="Form1" method="post" runat="server">
			<!-- #Include File="Header.aspx" -->
			<h1>Viewing All Elected Executive Members</h1>
			<asp:Label ID="lbl1" Runat="server">
				<h3>This Form Allows you to:</h3>
			</asp:Label><br />
			<asp:Label ID="Label1" Runat="server">Change Elected Executive</asp:Label><br />
			<hr />
			<asp:datagrid id="dtgNTCMembers" runat="server" Width="100%" HeaderStyle-CssClass="DataGridHeader"
				ItemStyle-CssClass="DataGridItems" SelectedItemStyle-CssClass="DataGridSelected" AutoGenerateColumns="False"
				ShowFooter="True">
				<Columns>
					<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update" HeaderText="Commands" CancelText="Cancel"
						EditText="Edit Member"></asp:EditCommandColumn>
					<asp:TemplateColumn HeaderText="Member Name">
						<ItemTemplate>
							<asp:Label ID="lblMemberName" Text='<%# DataBinder.Eval(Container.DataItem, "FullName") %>' Runat="server" />
						</ItemTemplate>
						<EditItemTemplate>
							<asp:DropDownList id="ddlMemberName" DataSource="<%# BindMembers() %>" OnPreRender="SetDropDownIndex" DataTextField="FullName" DataValueField="ID" runat="server" />
							<asp:label Visible=False ID="hiddenMemberName" Text='<%# DataBinder.Eval(Container.DataItem, "FullName") %>' Runat="server" />
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Title">
						<ItemTemplate>
							<asp:Label ID="lblTitle" Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>' Runat="server" />							
						</ItemTemplate>
						<EditItemTemplate>
							<asp:textbox ID="txtTitle" Width=300 Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>' Runat="server" />	
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn HeaderText="Position Email">
						<ItemTemplate>
							<asp:Label ID="lblCommitteeEmail" Text='<%# DataBinder.Eval(Container.DataItem, "CommitteeEmail") %>' Runat="server" />
						</ItemTemplate>
						<EditItemTemplate>
							<asp:textbox ID="txtCommitteeEmail" Width=200 Text='<%# DataBinder.Eval(Container.DataItem, "CommitteeEmail") %>' Runat="server" />
						</EditItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn>
						<ItemTemplate>
							<asp:Label ID="lblDirectorID" visible=false Text='<%# DataBinder.Eval(Container.DataItem, "Director_ID") %>' Runat="server" />
							<asp:Label ID="lblMemberID" visible=false Text='<%# DataBinder.Eval(Container.DataItem, "Member_ID") %>' Runat="server" />
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
				<PagerStyle NextPageText="Next" PrevPageText="Previous" Mode="NumericPages"></PagerStyle>
			</asp:datagrid>
			<asp:TextBox id="txtDirectorID" runat="server" Visible="False">0</asp:TextBox>
		</form>
	</body>
</html>
